import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import  baidu from '@/components/baidu'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'sUdSmbsNs3SD23Gk4dYZXIusmRtYC3w7'
})
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/baidu',
      name: 'baidu',
      component: baidu
    }
  ]
})
